<% form_for(@navigation) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name,"菜单名" %>
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :link ,"链接"%>
    <%= f.text_field :link %>
    <%=f.hidden_field :style,:value=>params[:style] ? params[:style]:@navigation.style %>
  </p>
  <p>
    <%= f.label :nav_order ,"排序"%>
    <%= f.text_field :nav_order,:size=>4 %>
  </p>
  <p>
    <%= f.submit "提交" %>
  </p>
<% end %>